package com.heima.common.exception;

/**
 * @author Jt
 * @date 2021/4/10 22:33
 */

import com.heima.model.common.enums.AppHttpCodeEnum;

/**
 * 抛异常工具类
 */
public class CustException {

    public static void cust(AppHttpCodeEnum codeEnum) {
        throw new CustomException(codeEnum );
    }

    public static void cust(AppHttpCodeEnum codeEnum,String msg) {
        throw new CustomException(codeEnum,msg);
    }

}
